Previously, we were showing and hiding the custom titlebar
widget in response to state changes such as maximization.
Instead, use gtk_widget_set_child_visible() and leave
show/hide to applications. This makes it possible to set
a custom titlebar and hide it, for a titlebar-less appearance.
https://bugzilla.gnome.org/show_bug.cgi?id=707132
if (priv->fullscreen ||
(maximized && priv->hide_titlebar_when_maximized))
{
- gtk_widget_hide (priv->title_box);
+ gtk_widget_set_child_visible (priv->title_box, FALSE);
return;
}
else
{
- gtk_widget_show (priv->title_box);
+ gtk_widget_set_child_visible (priv->title_box, TRUE);
}
if (priv->titlebar == NULL)